<?PHP
$uname = "";
$pword = "";
$errorMessage = "";

//==========================================
//	ESCAPE DANGEROUS SQL CHARACTERS
//==========================================

function quote_smart($value, $handle) {

   if (get_magic_quotes_gpc()) {
       $value = stripslashes($value);
   }

   if (!is_numeric($value)) {
       $value = "'" . mysql_real_escape_string($value, $handle) . "'";
   }
   return $value;
}

function connect_to_sql() {
	$user_name = "root";
	$pass_word = "";
	$server = "127.0.0.1";
	return mysql_connect($server, $user_name, $pass_word);
}

function connect_to_db($db_handle) {
	$database = "stars";
	return mysql_select_db($database, $db_handle);
}

function connect_to_sqli() {
    $user_name = "root";
    $pass_word = "";
    $server = "127.0.0.1";
    $database = "stars";
    return mysqli_connect($server, $user_name, $pass_word, $database);
}

?>